package com.springboot.demo.controller;

import com.springboot.demo.utils.ResponseUtils;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseStatus;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wubc683
 * @desc
 * @date 2021-09-06 13:45
 */
//@RestController
//@Api(tags = "会话接口")
//public class SessionController {
//    @Autowired
//    ResponseUtils responseUtils;
//
//    @GetMapping("/session/invalid")
//    @ApiOperation(value = "会话失效",notes = "一段时间无操作，会话失效")
//    public ResponseUtils sessionExpired() {
//        return responseUtils.buildFailedResponse(HttpStatus.UNAUTHORIZED.value(), "session已失效，请重新认证");
//    }
//}
